package com.symaster.backups.frame.element.pagination;

// import com.sun.java.swing.plaf.windows.WindowsButtonUI;
import lombok.Getter;
import lombok.Setter;

import javax.swing.*;

/**
 * @author yinmiao
 * @version 2024/1/21
 */
@Setter
@Getter
public class Button extends JButton {

    private ButtonType buttonType;
    private int index;
    private int pageIndex;

    public Button(ButtonType buttonType, int index, Icon icon) {
        super(icon);
        this.index = index;
        this.buttonType = buttonType;
        setUI();
    }

    private void setUI() {
        // setUI((ButtonUI) WindowsButtonUI.createUI(this));
    }

    public Button(ButtonType buttonType, int index, String text) {
        super(text);
        this.index = index;
        this.buttonType = buttonType;

        setUI();
    }
}
